
//  API.m
//  Cabs
//
//  Created by Joey on 2018/5/10.
//  Copyright © 2018年 Happyev. All rights reserved.
//


#import "API.h"


#if URL_SERVICE == 0

/** 正式环境 */
NSString *const RootUrl = @"https://api.cztec.com/v1-1";
NSString *const RootUrlWeb = @"http://appweb.cztec.com";


#elif URL_SERVICE == 1
/** 预生产环境 */
NSString *const RootUrl = @"http://pre.cztec.com";
NSString *const RootUrlWeb = @"http://appweb.pre.cztec.com";


#elif URL_SERVICE == 2
/** 测试环境 */
//NSString *const RootUrl = @"http://admin-ce27318979.daocloudapp.com";
NSString *const RootUrl = @"https://dev.cztec.com/v1-1";
//NSString *const RootUrl = @"http://dev.cztec.com";
NSString *const RootUrlWeb = @"https://appweb.test.cztec.com";


#elif URL_SERVICE == 3
/** 测试环境 */
NSString *const RootUrl = @"192.168.1.161:8080";
NSString *const RootUrlWeb = @"http://appweb.test.cztec.com";

/** 测试环境 */
//NSString *const RootUrl = @"http://192.168.0.168:8080";
//NSString *const RootUrl = @"http://192.168.0.49:8080";
//NSString *const RootUrl = @"java.test.ztime365.com";
//NSString *const RootUrl = @"http://192.168.0.186:8080";


#elif URL_SERVICE == 4
/** 苹环境 */
NSString *const RootUrl = @"https://release.ms1968.com/v1-1";
//NSString *const RootUrlWeb = @"http://appweb.release.cztec.com";
NSString *const RootUrlWeb = @"http://appweb.cztec.com";


#else
NSString *const RootUrl = @"https://www.ztime365.com";

#endif



#if RootProjectstate == 0

NSString *const RootProjectName = @"12吧";

#elif RootProjectstate == 1
NSString *const RootProjectName = @"12ba";

#elif RootProjectstate == 2
NSString *const RootProjectName = @"懂表帝";
#else

NSString *const RootProjectName = @"12吧";

#endif



//腾讯云 
//NSString *const RootUrlImage = @"http://mtime-1252014125.cosgz.myqcloud.com";
NSString *const RootUrlImage = @"http://mtime-1252014125.picgz.myqcloud.com";

#pragma mark - ---  登录

NSString *const userLogin = @"/app/userLogin";

#pragma mark - ---  退出登录

NSString *const userLoginOut = @"/app/userLoginOut/";

#pragma mark - ---  发送验证码

NSString *const sendSms = @"/app/sendSms";

#pragma mark - ---  获取版本号

NSString *const getSysParam = @"/app/getSysParam";

#pragma mark - ---  保存头像
NSString *const saveUserAvatar = @"/app/user/saveUserAvatar";

#pragma mark - ---  获取系统头像
NSString *const getSystemAvatar = @"/app/user/getSystemAvatar";

#pragma mark - ---  获取上传图片鉴权
NSString *const  getSign = @"/app/user/getSign";

#pragma mark - ---  保存用户信息
NSString *const  saveUserInfo = @"/app/user/saveUserInfo";

#pragma mark - ---  用户信息
NSString *const  getUserInfo = @"/app/user/getUserInfo";

#pragma mark - --- 图像识别
NSString *const imgRecognition = @"/app/imgRecognition";

#pragma mark - ---  获取查询条件
NSString *const searchConditions = @"/app/goods/searchConditions";

#pragma mark - ---  获取产品列表

NSString *const goods = @"/app/goods";

#pragma mark - ---  关注商品列表
NSString *const getFollowGoods = @"/app/follow/getFollowGoods";

#pragma mark - ---  我的询价列表
NSString *const getMyEnquiryList = @"/app/userEnquiry/getMyEnquiryList";

#pragma mark - ---  已结束询价列表
NSString *const getMyEndEnquiryList = @"/app/userEnquiry/getMyEndEnquiryList";

#pragma mark - ---  我的询价SKU详情
NSString *const skuDetail = @"/app/sku/skuDetail";

#pragma mark - ---  公开货源列表
NSString *const getOpenGoodsSourceInfo = @"/app/GoodsSource/getOpenGoodsSourceInfo";

#pragma mark - ---  新公开货源列表
NSString *const getNewOpenGoodsSourceInfo = @"/app/GoodsSource/getNewOpenGoodsSourceInfo";

#pragma mark - ---  接受报价
NSString *const acceptGoodsPrice = @"/app/userEnquiry/acceptGoodsPrice";

#pragma mark - ---  提醒商家报价
NSString *const remindBizSourcePrice = @"/app/userEnquiry/remindBizSourcePrice";

#pragma mark - ---  接受报价列表
NSString *const getAcceptPriceList = @"/app/bizPrice/getAcceptPriceList";


#pragma mark - ---  设置为不感兴趣的报价
NSString *const noInterestPrice = @"/app/bizPrice/noInterestPrice";

#pragma mark - ---  收到的报价列表
NSString *const getBizPriceInfoList = @"/app/bizPrice/getBizPriceInfoList";

#pragma mark - ---  新收到报价
NSString *const checkNewBizPriceInfo  = @"/app/bizPrice/checkNewBizPriceInfo";

#pragma mark - ---  开启询价

NSString *const openEnquiry = @"/app/userEnquiry/openEnquiry";


#pragma mark - ---  关注商品

NSString *const onFollowGoods = @"/app/follow/onFollowGoods";

#pragma mark - ---  取消关注商品

NSString *const cancelFollowGoods = @"/app/follow/cancelFollowGoods";

#pragma mark - ---  询价历史记录

NSString *const getHistoryEnquiryList = @"/app/userEnquiry/getHistoryEnquiryList";

#pragma mark - ---  结束询价

NSString *const endEnquiryPrice = @"/app/userEnquiry/endEnquiryPrice";

#pragma mark - ---  刷新询价

NSString *const refreshEnquiry = @"/app/userEnquiry/refreshEnquiry";

#pragma mark - ---  发布 UGC

NSString *const addUserUgc = @"/app/ugc/addUserUgc";

#pragma mark - ---  UGC 列表

NSString *const userUgcList = @"/app/ugc/userUgcList";

#pragma mark - ---  UGC 详情

NSString *const userUgcDetail = @"/app/ugc/userUgcDetail";

#pragma mark - ---  UGC 评论列表

NSString *const userCommentList = @"/app/ugc/userCommentList";

#pragma mark - ---  自己发表的UGC列表

NSString *const myselfUgcList = @"/app/ugc/myselfUgcList";


#pragma mark - ---  UGC点赞或者取消

NSString *const updateUgcLaud = @"/app/ugc/updateUgcLaud";

#pragma mark - ---  商品详情页获取地图

NSString *const  getBizMap = @"https://restapi.amap.com/v3/staticmap?";

#pragma mark - ---  发表主评论

NSString *const addUserComment = @"/app/ugc/addUserComment";

#pragma mark - ---  发表子评论

NSString *const  addSonComment = @"/app/ugc/addSonComment";

#pragma mark - ---  删除评论

NSString *const  delUserComment = @"/app/ugc/delUserComment";

#pragma mark - ---  删除UGC

NSString *const  delUserUgc = @"/app/ugc/delUserUgc";

#pragma mark - ---  收到的消息
NSString *const  getUserMsgList = @"/app/user/getUserMsgList";

#pragma mark - ---  我点赞的创作列表
NSString *const  getLaudContentList = @"/app/ugc/getLaudContentList";

#pragma mark - ---  封面创作列表
NSString *const  getCoverCreateList = @"/app/create/coverCreateList";

#pragma mark - ---  我的关注列表
NSString *const  getMyselfFollowList = @"/app/user/getMyselfFollowList";

#pragma mark - ---  关注我的列表
NSString *const  getFollowMeList = @"/app/user/getFollowMeList";

#pragma mark - ---  添加关注
NSString *const  addUserFollow = @"/app/user/addUserFollow";

#pragma mark - ---  取消关注
NSString *const  cancelUserFollow = @"/app/user/cancelUserFollow";

#pragma mark - ---  个人主页用户信息
NSString *const  mainUserInfo = @"/app/create/mainUserInfo";

#pragma mark - ---  PGC详情
NSString *const  userPgcDetail = @"/app/pgc/userPgcDetail";

#pragma mark - ---  点赞或者取消PGC
NSString *const updatePgcLaud = @"/app/ugc/updatePgcLaud";

#pragma mark - ---  我关注的创作列表
NSString *const  mySelfFollowCreateList = @"/app/create/mySelfFollowCreateList";;

#pragma mark - ---  PGC列表（杂志）
NSString *const  userPgcList = @"/app/pgc/userPgcList";

#pragma mark - ---  个人主页列表
NSString *const  mainCreateList = @"/app/create/mainCreateList";

#pragma mark - ---  点赞创作列表（pgc最新个人主页）
NSString *const  laudCreateList = @"/app/create/laudCreateList";

#pragma mark - ---  根据品牌获取系列
NSString *const  goodsSeries = @"/app/goods/series/";

#pragma mark - ---  视频上传签名
NSString *const  upVideo = @"/common/vod/sign/watch";

#pragma mark - ---  上传腕表视频信息
NSString *const  videosave = @"/app/watch-video/save";

#pragma mark - ---  举报类别
NSString *const  ReportCategory = @"/app/user/user-tip-off/category";

#pragma mark - ---  举报
NSString *const  Report = @"/app/user/user-tip-off";

#pragma mark - ---  汇率列表
NSString *const  huilvlist = @"/app/huilv/list";

#pragma mark - ---  推荐用户
NSString *const  recommenduser = @"/app/user/recommend-user/";


#pragma mark - ---  推荐的创作内容
NSString *const  recommendcreation = @"/app/create/recommend-creation";

#pragma mark - ---  推荐关键字
NSString *const  keywordlist = @"/cms/goods/keyword/list";

#pragma mark - ---  登录（new）
NSString *const  accountlogin = @"/app/account/login";

#pragma mark - ---  忘记密码(new)
NSString *const  accountforget = @"/app/account/forget";

#pragma mark - ---  更新帐号信息(new)
NSString *const  accountupdate = @"app/account/update";

#pragma mark - ---  验证码(new)
NSString *const  accountsendCode = @"/app/account/sendCode";

#pragma mark - ---  注册(new)
NSString *const  accountregistry = @"/app/account/registry";

#pragma mark - ---  拉黑列表
NSString *const  userRepelList = @"/app/user-repel/list";

#pragma mark - ---  添加拉黑
NSString *const  userRepelAdd = @"/app/user-repel/add";
    
#pragma mark - ---  取消拉黑
NSString *const  userRepelDelete = @"/app/user-repel/delete";


#pragma mark - ---  话题选择列表
NSString *const  userPTopicSubjects = @"/app/user-subjects";

#pragma mark - ---  社区帮助
NSString *const  userPTopicDefaultSubject = @"/app/user-subjects/default-subject";


#pragma mark - ---  搜索属性
NSString *const  searchAttribute= @"/common/ui/search";

#pragma mark - ---  搜索商品数量
NSString *const  searchGoodsCount= @"/app/goods-count";


#pragma mark - ---  品牌馆标签
NSString *const  goodsBrandTagsList= @"/app/goods-brand-tags/list";

#pragma mark - --- 品牌馆对应标签获取品牌
NSString *const  goodsBrandTags = @"/app/goods-brand/tags";

#pragma mark - --- 品牌详情
NSString *const  GoodsBrand = @"/app/goods-brand";

#pragma mark - --- 配置
NSString *const  createppp = @"/app/create/ppp";


//品牌列表
//searchConditions   =kAPI_BRAND_LIST
//系列列表
//goodsSeries =kAPI_SERIES_LIST
//#define kAPI_GOODS_LIST @"/app/goods" //型号列表 goods

#pragma mark - --- 话题列表
NSString *const  topicList = @"/app/user-subjects/page";//kAPI_TOPIC_LIST
#pragma mark - --- 过期话题列表
NSString *const  topicListExpire = @"/app/user-subjects/page/expired";//kAPI_TOPIC_LIST_EXPIRE
#pragma mark - --- 话题详情ugc列表
NSString *const  topicDetail_ugc_list = @"/app/ugc/list-by-user-subjectid";//kAPI_TOPIC_DETAIL_UGC_LIST
#pragma mark - --- 话题详情
NSString *const  topicDetail = @"/app/user-subjects/";//kAPI_TOPIC_DETAIL

#pragma mark - --- 首页调，是否满足7天活动要求
NSString *const  topictaskDetail = @"/app/user/task-detail/";//kAPI_TASK_INFO

#pragma mark - --- 注册完后，弹出活动窗口
NSString *const  topictasREGISTkDetail = @"/app/user/account-info";//kAPI_TASK_REGIST

#pragma mark - --- 注册完后，弹出活动窗口
NSString *const  topictasISSHOWkDetail = @"/app/user-task-detail/update-show-red-package/";//kAPI_TASK_ISSHOW

#pragma mark - --- 我关注的品牌/推荐
NSString *const  goodsBrandMyFollow = @"/app/goods-brand/my-follow";

#pragma mark - --- 热门品牌标签
NSString *const  createHotLabel = @"/app/create/hot-label";


#pragma mark - --- 交易模块

#pragma mark - --- 获取特卖场列表
NSString *const  specialSaleStatus = @"/app/special-sale/status";

#pragma mark - --- 获取特卖场列表
NSString *const  specialSaleSceneId = @"/app/special-sale-goods/special-sale-scene-id/";

NSString *const  specialSaleBrandList = @"/app/special-sale-goods/brand-list";

NSString *const  specialSaleSexList = @"/app/special-sale-goods/sex-list";



